/* 
 * File:   F08.h
 * Author: jcrada
 *
 * Created on 23 July 2011, 12:58 PM
 */

#ifndef JRV_F08_H
#define	JRV_F08_H

#include "ecb/base/Problem.h"

#include "ecb/function/Rastrigin.h"

namespace ecb {
    namespace jrv11 {

        class F08 : public Problem {
        private:
            Problem* rastrigin;
        public:

            F08(int dimensions)
            : Problem("F08", "Rastrigin", dimensions,
            -5.12, 5.12, true) {
                rastrigin = new Rastrigin;
            }

            ~F08() {
                delete rastrigin;
            }

            scalar f(const std::vector<scalar>& x) {
                return rastrigin->f(x);
            }
        };
    }
}

#endif	/* JRV_F08_H */

